From 3ad8bae1c450df0e4a43c78fc07d659dec08f4cc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 14 Sep 2014 08:36:41 -0400 Subject: [PATCH] inspector: Fix initial state of dark switch Noticed while debugging a totem problem. --- gtk/inspector/visual.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/inspector/visual.c b/gtk/inspector/visual.c index a86c9972ee..acd3c8e05f 100644 --- a/gtk/inspector/visual.c +++ b/gtk/inspector/visual.c @@ -258,9 +258,9 @@ theme_changed (GtkComboBox *c, static void init_dark (GtkInspectorVisual *vis) { - g_object_bind_property (vis->priv->dark_switch, "active", - gtk_settings_get_default (), "gtk-application-prefer-dark-theme", - G_BINDING_BIDIRECTIONAL); + g_object_bind_property (gtk_settings_get_default (), "gtk-application-prefer-dark-theme", + vis->priv->dark_switch, "active", + G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE); if (g_getenv ("GTK_THEME") != NULL) { -- 2.30.2